package com.ruoyi.cat.service;

import com.ruoyi.cat.domain.CatActivityTable;
import com.ruoyi.cat.domain.DTO.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * h5活动Service接口
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
public interface ICatActivityTableService 
{
    /**
     * 查询h5活动
     * 
     * @param id h5活动主键
     * @return h5活动
     */
    public CatActivityTable selectCatActivityTableById(Long id);


    public CatActivityTable selectCatActivityTableByIdTask(Long id);

    /**
     * 查询h5活动列表
     * 
     * @param catActivityTable h5活动
     * @return h5活动集合
     */
    public List<CatActivityTable> selectCatActivityTableList(CatActivityTable catActivityTable);

    /**
     * 新增h5活动
     * 
     * @param catActivityTable h5活动
     * @return 结果
     */
    public int insertCatActivityTable(CatActivityTable catActivityTable);

    /**
     * 修改h5活动
     * 
     * @param catActivityTable h5活动
     * @return 结果
     */
    public int updateCatActivityTable(CatActivityTable catActivityTable);


    public int updateCatActivity(CatActivityTable catActivityTable);

    /**
     * 批量删除h5活动
     * 
     * @param ids 需要删除的h5活动主键集合
     * @return 结果
     */
    public int deleteCatActivityTableByIds(Long[] ids);

    /**
     * 删除h5活动信息
     * 
     * @param id h5活动主键
     * @return 结果
     */
    public int deleteCatActivityTableById(Long id);

    List<ActivityShareDTO> getActivityListApiShare();

    ActivityTableDTO getActivityTableById(Long id,Long userId);


    ActivityTableDTO getActivityTableByMyId(Long id,Long userId);


    ActivityTableDTO getLotteryInfo(Long id,Long userId);


    List<CatActivityTable> getActivityTask();

    CatActivityTable getDetails(Long id);

    CatActivityTable selectCatActivityTableById1(Long id);

    List<CatActivityTable> getActivityDataTime();

    List<WriteDTO> getWriteList(Long userId);

    List<CatActivityTable> getActivityTaskTask();

    List<LatestTaskDTO> getActivityTaskHome();
}
